package cn.billho.popcache.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.RUNTIME)
@Target(value = {ElementType.METHOD, ElementType.TYPE})
public @interface GlobalLock {

    /**
     * 缓存key
     *
     */
    String key();

    /**
     * 锁过期时间(单位秒)
     */
    int expireSeconds() default 15;

}
